package com.avantis.common.entity;

import com.avantis.common.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: tracywang
 * @Date: 2018/12/31
 * @Descrption:
 */
@Entity
@Data
@Table(name = "k_product_price")
public class ProductPrice extends BaseEntity implements Serializable {

    /**
     * 商品编码
     */
    @Column
    private String productNo;

    /**
     * 价格名称
     */
    @Column
    private String priceName;

    /**
     * 零售价
     */
    @Column
    private BigDecimal retailPrice;

    /**
     * 批发价
     */
    @Column
    private BigDecimal tradePrice;

    /**
     * 成本价
     */
    @Column
    private BigDecimal costPrice;

    /**
     * 最低售价
     */
    @Column
    private BigDecimal minSellPrice;

    /**
     * 进货价
     */
    @Column
    private BigDecimal buyingPrice;

    /**
     * 是否启用 0启用 1禁用
     */
    @Column
    private Integer status=0;

    /**
     * 备注
     */
    @Column
    private String remark;

}
